namespace Web.Control.Member.User
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.Security;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;

    using BLF.WWW_User.Users;
    using Model;

    public class ActiveAccount : BaseControl
	{
		protected string[] msg = null;
        protected string ShowEmail = "";
        protected string ViewStateReturnUrl = "";
        protected PlaceHolder plhMsg;
        protected Literal litMsg;
		      
		protected override void OnLoad(EventArgs e)
		{
            if (string.IsNullOrEmpty(Request["mn"]) || string.IsNullOrEmpty(Request["an"]))
            {
                string affirmNo = User.GetActiveAccount(Request["mn"]);
                if (Request["an"] == Globals.Enctype(affirmNo))
                {
                    CommonMessage comMes = User.UpdateActiveAccount(Request["mn"]);
                }
                else
                {
                    Response.End();
                    return;
                }
            }
            else {
                Response.End();
                return;
            }
			base.OnLoad (e);
		}		
	}
}
